<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<link href="<%=request.getContextPath()%>/css/css.css" rel="stylesheet">
<title>Insert title here</title>
</head>

<script src="/vandor/jquery/jquery.min.js"></script>

<script type="text/javascript">

function update(){
	
	$.post("update",$("form").serialize(),function(obj){
		
		if(obj>0){
			
			alert("修改成功!");
			
			location = "list";
			
		}else
			{
			
			alert("修改失败!");
				
			}
		
		
	},'json');
	
}

</script>

<body>

<form action="update" method="post">

	<input type="hidden" name="mid" value="${mid.mid }"><br>
	影片名称:<input type="text" name="mname" value="${mid.mname }"><br>
	介绍:<textarea rows="5" cols="5" name="introduction">${mid.introduction }</textarea>

		<input type="button" value="修改" onclick="update()">
		
</form>

</body>
</html>